Skip to content

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Oct 20, 2024

Fixes #637

graingert and others added 8 commits October 20, 2024 21:34
In extreme cases, isinstance(..., ()) may still
return False instead of raising a TypeError
This uses private API now.

Proper fix pending discussion in python/cpython#131148
* Add deprecation in docstring
* Stop using private API, refs python/cpython#131148
* Use AbstractEventLoop instead, after @Vizonex's suggestion
@fantix fantix changed the title test on 3.14 Fix build for Python 3.14 Sep 14, 2025
@fantix fantix marked this pull request as ready for review September 14, 2025 22:12
@fantix fantix requested a review from 1st1 September 14, 2025 22:12
Copy link

@Vizonex Vizonex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@graingert @fantix
I like the fact that my approach from winloop is being utilized here but would it be smart if the install() function threw an error if 3.16+ is used?

@fantix
Copy link
Member

fantix commented Sep 15, 2025

I'm not sure, but I feel like it's fine that uvloop.install raises AttributeError on Python 3.16 after versions of deprecation, maybe with a proper error message. Let me add that!

Copy link

@Vizonex Vizonex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll have to mirror some of this myself even though I don't agree with all of it but it works nevertheless. You'll have to let 1st1 review it since I'm not the deciding factor but wanted to provide input and feedback to the project since I run the windows version of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uvloop fails on 3.14
5 participants